const Mock = require('mockjs');
const Random = Mock.Random;
module.exports = () => {
    let data = {article : [],users:[]};
    for(let i = 0; i < 10; i++)
    {
        data.article.push({
            id:i,
            title:Random.cword(10,20),
            content:Random.cword(80)
        });
        data.users.push({
            id:i,
            name:Random.cword(3)
        });
    }
    return data;
}